<template>
  <div class="waiting">
    <div>
      <div class="waiting-img">
        <img src='../../assets/image/load.gif'/>
      </div>
      <div class="waiting-text">{{title}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: { default: '正在加载中...' }
  }
}
</script>

<style lang="css" scoped>
	img{
		width: 50px;
		margin: auto;
		margin-top: 15px;
		margin-bottom:10px;
	}
	.waiting{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
		background: rgba(255,255,255,0.7);
    color: #000;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size:14px;
    top: 0;
    left: 0;
    /*left: calc(50% - 50px);*/
    /*left: -webkit-calc(50% - 50px);*/
    /*top: calc(50% - 50px);*/
    /*top: -webkit-calc(50% - 50px);*/
	}

</style>
